<!--[if lt IE 7]>
<div class="kie-bar">
    您目前的浏览器版本过低，可能导致网站部分功能无法正常使用，建议尽快升级您的浏览器。点击
    <a href="http://www.microsoft.com/zh-cn/download/internet-explorer-7-details.aspx" target="_blank">免费升级</a>
    或下载使用
    <a href="http://rj.baidu.com/soft/detail/14744.html?ald" target="_blank" title="谷歌浏览器">谷歌浏览器</a>
</div>
<style>
    .kie-bar {
        height: 24px; line-height: 24px; font-weight: normal; text-align: center; border-bottom: 1px solid #fce4b5;
        background-color: #FFFF9B; color: #e27839; position: relative; font-size: 14px; text-shadow: 0 0 1px #efefef; padding: 5px 0;
        z-index:999;
    }
    .kie-bar a {color: #08c; text-decoration: none; margin: 0 7px;}
    .g-hd{top:35px;}
</style>
<![endif]-->

<?php 
define('APP_PATH', 'http://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'],'/')+1));

$environment = 'producter';
$app_path = '';
switch($environment){
	case 'develeper': 
		break;
	case 'producter': 
		// HTTP_REFERER PHP_SELF REQUEST_URI
		$rui_segment = explode('/', $_SERVER['PHP_SELF']);
		//$rul_segment = explode('/', $_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'],'/')+1) );
		$host = 'http://'.$_SERVER['HTTP_HOST'].'/';
		$php_self = $_SERVER['PHP_SELF'];
		break;
}


//var_dump( $_SERVER);
//exit;
$first_url = '';
// 非首页
if( !in_array('index.php', $rui_segment) ){
	$first_url = '../';
}
?>

<!-- header -->
<div class="g-hd">
    <div class="m-bd">
        <!-- logo -->
        <h1 class="m-logo">
            <a href="#"><img src="<?php echo $first_url;?>static/common/img/w-logo.png" alt="logo" title="众用助手" height="40"></a>
        </h1>
        <!-- /logo -->
        <!-- nav -->
        <ul class="m-nav f-cb">
            <li><a <?php if( in_array('index.php', $rui_segment) ){ echo 'class="z-cur"'; }?> href="<?php if($environment=='producter'){echo $host, 'index.php';}else{echo $host, $rui_segment[1], '/index.php';}?>">首页</a></li>
            <li><a <?php if( in_array('business.php', $rui_segment) ){ echo 'class="z-cur"'; }?> href="<?php if($environment=='producter'){echo $host, 'front/business.php';}else{echo $host, $rui_segment[1], '/front/business.php';}?>">商务合作</a>
            <li><a <?php if( in_array('product.php', $rui_segment) ){ echo 'class="z-cur"'; }?> href="#">SDK下载</a></li>
            <li><a href="#">帮助中心</a></li>
            <li id="J_loginReg"><a href="javascript:;">登录/注册</a></li>
            <li class="m-nav-app">
                <a href="#">
                	<img class="u-qr" src="<?php echo $first_url;?>static/front/common/img/icon_qr.png" width="16" height="16" />
                	<span class="u-tt">APP</span>
                	<span class="u-arrow"></span>
                    <p class="m-nav-appqr">
                        <img src="<?php echo $first_url;?>static/common/img/qrcode-red.png" alt="二维码" title="扫描下载APP">
                        <span>扫码直接下载</span>
                    </p>
                </a>
            </li>
            <li id="J_navUser" class="m-nav-user">
            	<ul id="J_userName"></ul>
            </li>
        </ul>
        <!-- /nav -->
    </div>
</div>
<!--/header-->
